/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sk.itat.wicket;

import java.io.Serializable;
import java.util.ArrayList;

/**
 *
 * @author opteron1441
 */
public class Uzivatel implements Serializable {

    private String firstName;
    private String lastName;
    private String login;
    private String heslo;
    private String adresa;
    private int telCislo;
    private String email;
    private String spolocnost;
    private String krajina;
    private int id;
    private ArrayList<RoomRegistration> zoznamRezervacii;
    private ArrayList<PresentRoomReg> zoznamPrezentacii;

    public Uzivatel() {
        zoznamPrezentacii = new ArrayList<PresentRoomReg>();
        zoznamRezervacii = new ArrayList<RoomRegistration>();
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Uzivatel other = (Uzivatel) obj;
        if ((this.firstName == null) ? (other.firstName != null) : !this.firstName.equals(other.firstName)) {
            return false;
        }
        if ((this.lastName == null) ? (other.lastName != null) : !this.lastName.equals(other.lastName)) {
            return false;
        }
        if ((this.login == null) ? (other.login != null) : !this.login.equals(other.login)) {
            return false;
        }
        if ((this.heslo == null) ? (other.heslo != null) : !this.heslo.equals(other.heslo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        return hash;
    }

    

    @Override
    public String toString() {
        return "Uzivatel " + id + " firstName=" + firstName + " lastName=" + lastName;
    }

    public ArrayList<PresentRoomReg> getZoznamPrezentacii() {
        return zoznamPrezentacii;
    }

    public void setZoznamPrezentacii(ArrayList<PresentRoomReg> zoznamPrezentacii) {
        this.zoznamPrezentacii = zoznamPrezentacii;
    }

    public ArrayList<RoomRegistration> getZoznamRezervacii() {
        return zoznamRezervacii;
    }

    public void setZoznamRezervacii(ArrayList<RoomRegistration> zoznamRezervacii) {
        this.zoznamRezervacii = zoznamRezervacii;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAdresa() {
        return adresa;
    }

    public void setAdresa(String adresa) {
        this.adresa = adresa;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getHeslo() {
        return heslo;
    }

    public void setHeslo(String heslo) {
        this.heslo = heslo;
    }

    public String getKrajina() {
        return krajina;
    }

    public void setKrajina(String krajina) {
        this.krajina = krajina;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getSpolocnost() {
        return spolocnost;
    }

    public void setSpolocnost(String spolocnost) {
        this.spolocnost = spolocnost;
    }

    public int getTelCislo() {
        return telCislo;
    }

    public void setTelCislo(int telCislo) {
        this.telCislo = telCislo;
    }

    public Uzivatel(String firstName, String lastName, String login, String heslo, String adresa, int telCislo, String email, String krajina, int id) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.login = login;
        this.heslo = heslo;
        this.adresa = adresa;
        this.telCislo = telCislo;
        this.email = email;
        this.krajina = krajina;
        this.id = id;

    }


    private static final long serialVersionUID = 1L;
}
